//
//  XJCommunityModel.h
//  XinJiangMall
//
//  Created by RaoBo on 2018/6/4.
//  Copyright © 2018年 Tzyang. All rights reserved.
//  社区model

#import <Foundation/Foundation.h>

@interface XJCommunityModel : NSObject
/**小区名*/
@property (nonatomic, copy) NSString *name;
/**3.address 地址 */
@property (nonatomic, copy) NSString *address;

/**2.请求参数： 社区id  单独转换*/
@property (nonatomic, copy) NSString *community_id;

/**3.搜索结果专用字段 距离  0.26 需要转为m*/
@property (nonatomic, strong) NSNumber *distance;


/*4.存入数据库的主键*/
@property(nonatomic, strong) NSNumber *ID;
@end



// 有部分字段一致 所有公用同一个model


//一 附近地址接口返回的数据
/**
 
 {
 "data" : {
 "content" : {
 "community_list" : [
 {
 "avatar" : "http:\/\/static.zertone1.com\/CcrIyZcpeCRL3oVBXBDEpF5FJXvLIYxG.png",
 "address" : "华盛达馆藏",
 "id" : 12,
 "geohash" : "wtm7ybtt",
 "lng" : 120.187084,
 "lat" : 30.194078999999999,
 "name" : "无名小区",
 "cover" : "http:\/\/static.zertone1.com\/xBKzFxYn6toMpkArRxmtktwDi6VZQEMP.jpg"
 },
 {
 "avatar" : "http:\/\/static.zertone1.com\/CcrIyZcpeCRL3oVBXBDEpF5FJXvLIYxG.png",
 "id" : 13,
 "geohash" : "wtm7yb7z",
 "lng" : 120.18483999999999,
 "lat" : 30.193059999999999,
 "name" : "有名小区",
 "cover" : ""
 },
 {
 "avatar" : "http:\/\/static.zertone1.com\/b6fFHjKmDqGKtCdhRmDDDk1ferIJVIOA.png",
 "address" : "杭州滨江区华盛达广场",
 "id" : 8,
 "geohash" : "wtm7y2u6",
 "lng" : 120.163383,
 "lat" : 30.194956000000001,
 "name" : "000000",
 "cover" : "http:\/\/static.zertone1.com\/cJBtgy9ue3NAtR1q3gnHY2G1myuYzMDL.jpg"
 },
 {
 "avatar" : "http:\/\/static.zertone1.com\/t8aAnK9hqxHySVG9JNCSO6bTCZsaZ68n.png",
 "address" : "滨江路222号0",
 "id" : 9,
 "geohash" : "wtm7ybz0",
 "lng" : 120.186886,
 "lat" : 30.267780999999999,
 "name" : "兴华苑小区",
 "cover" : "http:\/\/static.zertone1.com\/49eTlCAftTzywzvzgWo7o5LlwsJljmMN.jpg"
 }
 ]
 }
 },
 "code" : 0
 }
 

 
 */



//二 点击搜索返回接口返回的数据
/**
 {
 "data" : {
 "community_list" : [
 {
 "id" : 12,
 "geohash" : "wtm7ybtt",
 "linkman" : "呵呵",
 "phone" : "13470039227",
 "admin_id" : 1,
 "avatar" : "http:\/\/static.zertone1.com\/CcrIyZcpeCRL3oVBXBDEpF5FJXvLIYxG.png",
 "address" : "华盛达馆藏",
 "lat" : 30.194078999999999,
 "admin_name" : "张三",
 "is_delete" : 0,
 "lng" : 120.187084,
 "create_time" : 1527474398688,
 "distance" : 0.26000000000000001,
 "name" : "无名小区",
 "status" : 1
 }
 ]
 },
 "code" : 0
 }
 
 */


